package org.pearl.validation.demo.mapstruct;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by TD on 2021/6/4
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "make", ignore = true)
@Mapping(source = "numberOfSeats", target = "seatCount")
public @interface ToEntity {
}
